-
Notifications
You must be signed in to change notification settings - Fork 200
[WIP]add candlestick chart in vchart-extension #4090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
protected _getDefaultStyle() { | ||
const defaultStyle: IMarkStyle<ICandlestickMarkSpec> = { | ||
...super._getDefaultStyle(), | ||
boxWidth: 40 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P0] boxWidth 根据 轴 bandwidth 计算,参考 boxplot,不能写死
if (candlestickMark) { | ||
const CandlestickStyles = { | ||
boxWidth: this._boxWidth, | ||
fill: this._boxFill ?? this.getCandlestickColorAttribute.bind(this), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P1] 样式配置要生效在更多配置项;目前代码里只能生效在 fill/stroke
'closeField', | ||
'candlestickColor' | ||
]); | ||
seriesSpec.yField = dataFields; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果考虑不常见的水平方向的话,这里可以补充一个方向判定。相应的 interface 中也需要增加水平时的 yField 配置
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
🔗 Related PR link
🐞 Bugserver case id
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough